Skip to content

fix: CVE-2026-40895 - Strip sensitive headers on redirect - #158

Merged
thomaszang merged 1 commit into
mainfrom
fix/cve-2026-40895-header-leak
Nov 13, 2026
Merged

thomaszang merged 1 commit into
mainfrom
fix/cve-2026-40895-header-leak

Conversation

@thomaszang

Copy link
Copy Markdown
Member

Prevent leaking X-SMP-CONDUIT-REQ-BODY and X-Requested-With headers to attacker-controlled domains during HTTP redirects.

The X-SMP-CONDUIT-REQ-BODY header contains base64-encoded request data that should never be forwarded to redirect targets. Configure axios beforeRedirect interceptor to strip these sensitive headers.

Affected: src/mobile-services-client.ts fetchMetadata() method

Prevent leaking X-SMP-CONDUIT-REQ-BODY and X-Requested-With headers
to attacker-controlled domains during HTTP redirects.

The X-SMP-CONDUIT-REQ-BODY header contains base64-encoded request data
that should never be forwarded to redirect targets. Configure axios
beforeRedirect interceptor to strip these sensitive headers.

Affected: src/mobile-services-client.ts fetchMetadata() method

@KannusamiK KannusamiK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok for me

@thomaszang
thomaszang merged commit 5e22b2c into main Nov 13, 2026
4 checks passed
@thomaszang
thomaszang deleted the fix/cve-2026-40895-header-leak branch November 13, 2026 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants